package com.test2;

public class Manager extends Employee{
    private int bonus;

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    public Manager(){

    }

    public Manager(String name, int age, int wage, int bonus) {
        super(name, age, wage);
        this.bonus = bonus;
    }

    @Override
    public void work() {
        super.work();
        System.out.println("姓名为"+getName()+
                "，年龄为" +getAge()+
                "，工资为" +getWage()+
                ",奖金为"+bonus+
                "的项目经理正在分配任务");
    }
}
